(ctx) => {
  try {
    const res = typeof ctx == "string" ? JSON.parse(ctx) : ctx;
    return {
      key: res.key,
      id: res.newId ? res.newId : res.id,
      country: res.country,
      card: res.card,
    };
  } catch (e) {
    console.log(e);
    return {
      result: "fail",
      reason: "ctx结构有误，JSON解析失败",
    };
  }
};
